package Day7;

public class WuLin extends Car {
    private int weight;

    public WuLin(String color, String no, int weight) {
        super(color, no);
        this.weight = weight;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    @Override
    public void start() {
        System.out.println("五菱宏光启动正常,本次载货量："+getWeight()+"车牌号："+getNo()+",颜色："+getColor());
    }
    @Override
    public void jiashu() {
        System.out.println("五菱宏光正在加速，加速正常");
    }

    @Override
    public void shache() {
        System.out.println("五菱宏光加速刹车，刹车正常");
    }

    @Override
    public void show(Car car) {
        super.show(car);
    }

}
